package com.gsoe.base.utils;

import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.gsoe.base.model.User;

public class UserUtil {
    public static User getLoginUser(){
        JSONObject info = (JSONObject) StpUtil.getExtra("info");
        return JSONUtil.toBean(info,User.class);
    }
}
